package com.example.text.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.text.entity.AdminPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 规则许可表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
@Mapper
public interface AdminPermissionDao  extends BaseMapper<AdminPermission> {

    //根据Pid的集合，找到（Pid=AdminRoleMenu.Id)符合的所有数据
    List<AdminPermission> findAllById(@Param("Pid") List<Integer> Pid);

    //查询所有数据
    List<AdminPermission>  findAll();


}
